﻿using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.Instances;

namespace NMA.Infrastructure.NHibernate.Mapping.Convention
{
    public class CustomHasManyConvention : IHasManyConvention 
    {
        public void Apply(IOneToManyCollectionInstance instance)
        {
            instance.Key.Column(instance.EntityType.Name + "ID");
        }
    }
}
